package test.org.nanotek.jpa.persistence.city;

import java.util.Set;

import org.nanotek.Builder;
import org.nanotek.base.atlas.city.City;
import org.nanotek.base.atlas.city.address.Address;
import org.nanotek.base.atlas.city.address.AddressType;
import org.nanotek.base.atlas.country.ZipCode;

public class AddressBuilder implements Builder<Address>{

	private Address address = new Address();
	
	public AddressBuilder setAddressCities(Set<City> addressCities) {
		address.setAddressCities(addressCities);
		return this;
	}

	public AddressBuilder setCity(City city) {
		address.setCity(city);
		return this;
	}

	public AddressBuilder setZipCodes(Set<ZipCode> zipCodes) {
		address.setZipCodes(zipCodes);
		return this;
	}

	public AddressBuilder setAddressType(AddressType addressType) {
		address.setAddressType(addressType);
		return this;
	}

	@Override
	public Address build() {
		return address;
	}
	
}
